<template>
	<view>
		<view class="img">
			<image :src="data.imgUrl" mode="aspectFit"></image>
		</view>
		<view class="item">
			<view class="item-header">
				乘机人姓名：
			</view>
			<view class="item-body">
				{{data.name}}
			</view>
		</view>
		<view class="item" >
			<view class="item-header">
				开票日期：
			</view>
			<view class="item-body">
				{{data.times}}
			</view>
		</view>
		<view class="item" >
			<view class="item-header">
				电子客票号码:
			</view>
			<view class="item-body">
				{{data.number}}
			</view>
		</view>
		<view class="item" >
			<view class="item-header">
				票价：
			</view>
			<view class="item-body">
				{{data.quota}}
			</view>
		</view>
		<view class="item" >
			<view class="item-header">
				燃油附加费：
			</view>
			<view class="item-body">
				{{data.fuelCharge}}
			</view>
		</view>
		<view class="item" >
			<view class="item-header">
				民航发展基金：
			</view>
			<view class="item-body">
				{{data.fuelCharge}}
			</view>
		</view>
		<view class="item" >
			<view class="item-header">
				总金额：
			</view>
			<view class="item-body">
				{{data.developFund}}
				
			</view>
		</view>
		<view class="item" >
			<view class="item-header">
				保险费：
			</view>
			<view class="item-body">
				{{data.insure}}
			</view>
		</view>
		<view class="item" >
			<view class="item-header">
				填开单位：
			</view>
			<view class="item-body">
				{{data.company}}
			</view>
		</view>
		<view class="item" >
			<view class="item-header">
				乘机日期：
			</view>
			<view class="item-body">
				{{data.times}}
			</view>
		</view>
		<view class="item" >
			<view class="item-header">
				航班号：
			</view>
			<view class="item-body">
				{{data.planeNumeber}}
			</view>
		</view>
		<view class="item" >
			<view class="item-header">
				仓位：
			</view>
			<view class="item-body">
				{{data.seat}}
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data:{
					
				}
			}
		},
		methods: {
			
		},
		onLoad(){
			uni.$on('ticketDetail',data=>{
				this.data=data
				console.log('receive')
			})
		},
		onUnload(){
			uni.$off('ticketDetail')
		}
	}
</script>

<style lang="scss" scoped>
page{
	background-color: white;
	padding: 50rpx;
}
.item{
	height: 150rpx;
	margin-bottom: 20rpx;
	border-bottom: 1rpx solid $underline;
}
.item-header{
	height: 75rpx;
	line-height: 75rpx;
	font-size: 30rpx;
	color: $uni-text-color-grey;
}
.item-body{
	height: 75rpx;
	line-height: 75rpx;
}
</style>
